﻿using Net.Web.Framework.UI.Paging;
using System.Collections.Generic;
using System.Web.Mvc;

namespace Net.Web.Models.Resumes
{
    /// <summary>
    /// 简历列表实体
    /// </summary>
    public class ResumeListModel : BasePageableModel
    {
        public ResumeListModel()
        {
            this.Resumes = new List<ResumeOverviewModel>();
            this.PageSizeOptions = new List<SelectListItem>();
            this.AvailableCity = new List<SelectListItem>();
            this.AvailableSortOptions = new List<SelectListItem>();
        }

        /// <summary>
        /// 简历集合
        /// </summary>
        public IList<ResumeOverviewModel> Resumes { get; set; }

        /// <summary>
        /// 关键字
        /// </summary>
        public string Keyword { get; set; }


        /// <summary>
        /// 所在城市
        /// </summary>
        public IList<SelectListItem> AvailableCity { get; set; }

        /// <summary>
        /// 所选城市
        /// </summary>
        public int City { get; set; }

        /// <summary>
        /// 分页选项
        /// </summary>
        public IList<SelectListItem> PageSizeOptions { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int OrderBy { get; set; }


        /// <summary>
        /// 排序选项
        /// </summary>
        public IList<SelectListItem> AvailableSortOptions { get; set; }

    }
}